﻿package mortal.game.view.copy.towerCopy.cellrender
{
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.view.common.*;
    import mortal.game.view.mail.view.*;

    public class TowerRewardsCellRenderer extends MailAttachRenderer
    {
        private var _numText:GTextFiled;

        public function TowerRewardsCellRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            _item.isShowLock = true;
            this._numText = UIFactory.gTextField("2", 0, 22, 40, 20, this, GlobalStyle.textFormatBai.right(), true);
            this._numText.mouseEnabled = false;
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            if (param1 is ItemData)
            {
                this._numText.text = ItemData(param1).extData + "";
            }
            else
            {
                this._numText.text = "";
            }
            _item.isDragAble = false;
            _item.isDropAble = false;
            return;
        }// end function

    }
}
